import React, { Component } from "react";
import { Form, Icon, Input, Button, Alert, Layout, Avatar, Modal, message, Select, Upload, Card, Row, Col, Radio   } from "antd";
import { ImagePicker, WingBlank, Toast } from "antd-mobile";
import { getAccessTokenForOpenId, getUserInfoStudentByWeChatIdForSendMsg, getUserWechatInfoStudent, deleteWechatIdStudentForSendMsg, bindStudentApi, ConnectionApi } from "../js/wechatapi.js";
import { iconFontUrl } from "../js/config.js";
import { getSignature } from "../js/dangerpushapi.js";

const IconFont = Icon.createFromIconfontCN({
    scriptUrl: iconFontUrl
});

const FormItem = Form.Item;
const { Content, Sider } = Layout;
const WX = require("jweixin-wechat");

class bindUserInfoStudent extends Component {
    
    constructor(props) {
        super(props);
        this.state = {
            isShow:false,
            value:1,
            imgSrc:"",
            previewVisible: false,
            previewImage: '',
            canUpload:true,
            members: [],
            visiable: false,
            loading:'',
            phoneNumber:'',
            logoCode:'',
            studentName:'',
            parernts:'',
            uploading: false,
            bindUrl:'',
            imageUrl:'',
            files: [],
            multiple: false,
            // openid:'',
            openid: this.props.location.state.openid
        };
        document.title = '家长信息绑定';
    }

    componentDidMount() {
        const avaliablemembers = [];
        ConnectionApi()
            .then((res) => {
                res.data.forEach((item, index) => {
                    avaliablemembers.push({
                        connection: item.connection,
                        value: item.connection
                    });
                });
                this.setState({
                    members: avaliablemembers
                })
            })
        getSignature(window.location.href)
            .then(res => {
                WX.config({
                    debug: false, //开启debug模式，在验证签名过程中会返回对应信息
                    appId: res.data.appid,
                    signature: res.data.signature,
                    nonceStr: res.data.noncestr,
                    timestamp: res.data.timestamp,
                    jsApiList: ['previewImage']
                });
            })
            .catch((e) => {
                if (e.response) {
                    //请求已发出，服务器返回状态码不是2xx。
                    console.info(e.response.data)
                    console.info(e.response.status)
                    console.info(e.response.headers)
                } else if (e.request) {
                    // 请求已发出，但没有收到响应
                    // e.request 在浏览器里是一个XMLHttpRequest实例，
                    // 在node中是一个http.ClientRequest实例
                    console.info(e.request)
                } else {
                    //发送请求时异常，捕捉到错误
                    console.info('error', e.message)
                }
                console.info(e.config)
            });
    }

    getUserInfoStudent = (openid) => {
        getUserInfoStudentByWeChatIdForSendMsg(openid)
            .then((res) => {
            
                if (res.data.isContain == true) { //该用户已绑定
                    console.log("res.data.bindStudentInfo[0].imageUrl:"+res.data.bindStudentInfo[0].imageUrl);
                    this.setState({
                        bindStudentInfoget: res.data.bindStudentInfo,
                        imageUrl:res.data.bindStudentInfo[0].imageUrl                  
                    });
                    // getUserWechatInfoStudent(accessToken, openid)
                } else {
                    this.setState({
                        nodata: true
                    })
                    // this.props.history.push({ pathname: '/wechatBindStudent', state: { openid: openid, imageUrl:''} });   
                    // this.props.history.push({pathname: '/wechatBind', state: {openid: "oK_0N079n3oSxMU4igzloJceguco"}});
                }
            })
            .catch((e) => {
                if (e.response) {
                    //请求已发出，服务器返回状态码不是2xx。
                    console.info(e.response.data)
                    console.info(e.response.status)
                    console.info(e.response.headers)
                } else if (e.request) {
                    // 请求已发出，但没有收到响应
                    // e.request 在浏览器里是一个XMLHttpRequest实例，
                    // 在node中是一个http.ClientRequest实例
                    console.info(e.request)
                } else {
                    //发送请求时异常，捕捉到错误
                    console.info('error', e.message)
                }
                console.info(e.config)
            });
    }

    //fun
    onClose =() => {
        this.setState({
            imgShow: false
        });
    }
    imgShow=(e)=>{
    
        if(e.target.nodeName==="IMG"){ //判断img 节点
            this.setState({
                imgShow:true,
                imgSrc:e.target.src
            })
        }
    }
    
    handleSubmit = e => {
        e.preventDefault();
        const  {files}  = this.state;
        const formData = new FormData(); 
        // console.log("handleSubmitimgUrl"+this.props.location.state.imageUrl);  
        // if(this.props.location.state.imageUrl.length>0)   
        if(this.props.location.state.imageUrl.length>0||files.length>0){           
            if(this.state.files.length>0){
                formData.append('upfile', files[0].file);    
            }else{                     
                formData.append('imageUrl', this.props.location.state.imageUrl);
            }        
            this.setState({
                uploading: true,
            });
            this.props.form.validateFields((err, values) => {
                if (!err) {
                    formData.append('phoneNumber', values.phoneNumber);
                    formData.append('logoCode', values.logoCode);
                    formData.append('studentName', values.studentName);
                    formData.append('parents', values.parents);  
                    formData.append('wechatIdForSendMsg', this.state.openid);  
                               
                    bindStudentApi(formData)
                        .then((res) => {    
                            if (res.data.res == "success") {
                                this.props.history.push('/success');
                                document.title = '已绑定信息';
                                
                            } else {
                                this.setState({
                                    visible: true,
                                    msg: res.data.msg
                                });
                                console.log(res.data.msg);
                                Toast.fail(res.data.msg, 1);
                            }
                        })                        
                        .catch((e) => {
                            if (e.response) {
                                //请求已发出，服务器返回状态码不是2xx。
                                console.info(e.response.data)
                                console.info(e.response.status)
                                console.info(e.response.headers)
                            } else if (e.request) {
                                // 请求已发出，但没有收到响应
                                // e.request 在浏览器里是一个XMLHttpRequest实例，
                                // 在node中是一个http.ClientRequest实例
                                console.info(e.request)
                            } else {
                                //发送请求时异常，捕捉到错误
                                console.info('error', e.message);
                            }
                            console.info(e.config)
                        });
                }
            });
        }else{
            console.log(this.props.location.state.imageUrl.length);
            Toast.info('请上传图片', 1);
        } 
       
    };   
    onClickListenerSelect = (that) =>{
        const avaliablemembers = this.state.members.map((d, index) =>
            <Option value={d.value} key={index}>
                {d.connection}
            </Option>);  
        return ({avaliablemembers})
    };
    
    handleOk = e => {
        console.log(e);
        this.setState({
            visible: false,
        });
    };

    handleCancel = () => this.setState({ previewVisible: false });

    onChangeRadio = e => {
        console.log('radio checked', e.target.value);
        this.setState({
            value: e.target.value,
        });
    };

    imgPreview = (src) => {
        let base = "https://tidukeji.cn/pagetest";
        WX.ready(() => {
            WX.previewImage({
                current: base + src,
                urls: [base + src] //需要预览的图片http链接列表
            });
        });
    }

    onChange = (files, type, index) => {
        console.log(files);
        // console.log("imgUploadUrl"+imgUploadUrl); 
        this.setState({
            files: files,
            // imgUploadUrl: imgUploadUrl
        });
    } 

    onImageClick= (index, fs) =>{
        console.log(fs[index].url);
        WX.ready(() => {
            WX.previewImage({
                current: fs[index].url,
                urls: [fs[index].url] //需要预览的图片http链接列表
            });
        });
        // this.base64src(fs[index].url, res => {
        //     console.log(res) // 返回图片地址，直接赋值到image标签即可
        //     WX.previewImage({
        //         current: res, 
        //         urls: [res]
        //     })
        // });

    }

    render() {          
        const { getFieldDecorator } = this.props.form; 
        const { files } = this.state;
        // const { previewVisible, previewImage, fileList } = this.state;
        const uploadButton = (
            <div>
                <div className="ant-upload-text">上传图片</div>
            </div>
        )
        // const avaliablemembers = this.state.members.map((d, index) =>
        //     <Option value={d.value} key={index}>
        //         {d.connection}
        //     </Option>);
        const avaliablemembersRadio = this.state.members.map((d, index) =>
            <Radio style={{                                                    
                fontSize: '18px',
                justifyContent: 'center'
            }} value={d.value} key={index}>
                {d.connection}
            </Radio>);
          
        const formUpload = (
            //家长头像未提交之前显示的组件
            <Row>              
                <Col span={16} >
                    <div className="clearfix">
                        <ImagePicker
                            style={{
                                display:'table', 
                                float:'left',
                                width:'95px',
                                height:'95px',
                                marginRight:'8px',
                                marginBottom:'8px',
                                marginLeft:'8px',
                                textAlign:'center',
                                border:'1px dashed #d9d9d9',
                                borderRadius:'4px',
                                cursor:'pointer'}} 
                            length = {1}                    
                            files={files}
                            onChange={this.onChange}
                            // onChange={(fileList) => this.handleChange(fileList)}
                            onImageClick={(index, fs) => this.onImageClick(index, fs)}
                            selectable={files.length < 1}
                            multiple = {this.state.multiple}
                        />

                    </div>  
                </Col>
                <Col span={8}>
                    <div algn="center">
                        {/* <img style={{ width: '100%' }} src={bindImageSrc} /> */}
                        <img alt="example" style={{
                            display:'table', 
                            float:'left',
                            width:'95px',
                            height:'95px',
                            marginRight:'8px',
                            marginBottom:'8px',
                            textAlign:'center',
                            border:'1px dashed #d9d9d9',
                            borderRadius:'4px',
                            cursor:'pointer'}} 
                        src = { require("../img/example.jpg") }
                        onClick = {() => this.imgPreview("/img/example.jpg")} />                                
                    </div>
                </Col>               
            </Row>             
            
        ); 
        const bindImageSrc = ("https://tidukeji.cn" + this.props.location.state.imageUrl);
        console.log('bindImageSrc:'+bindImageSrc); 
        const bindImage = ( 
            //bindImageSrc家长已上传的头像地址                       
            <div algn="center">
                <img  style={{
                    display:'table', 
                    float:'left',
                    width:'104px',
                    height:'104px',
                    marginRight:'8px',
                    marginBottom:'8px',
                    textAlign:'center',
                    border:'1px dashed #d9d9d9',
                    borderRadius:'4px',
                    cursor:'pointer'}} src={bindImageSrc} />

            </div>
              
        )    
        const isUpload = ((this.props.location.state.imageUrl.length>0) ? bindImage : formUpload);
        return ( 
            
            <Layout style={{
                height: '100%',
                width:'100%',
                
            }}>                 
                <Content style={{
                    position: 'relative',
                    width:'100%',
                    height: '100%',
                    backgroundColor: '#ECECEC',
                    // padding:'0px 15px'                                      
                }}> 
                    {/* <div className="wechat-bind">   */}
                    {/* <h1 style={{ textAlign: "center" }}>绑定家长信息</h1> */}
                    <Row type="flex" justify="center" align="bottom" style={{pading:'24px'}}>                                          
                        <Col justify="center" style={{width:'100%', padding:'10px 15px'}}>
                            {/* <h1 style={{ textAlign: "center" }}>家长信息绑定</h1> */}
                            <Card style={{pading:'10px 10px'} }>           
                                <Form  onSubmit={this.handleSubmit.bind(this)} className="wechat-bind-form">                           
                                    <FormItem>                    
                                        {getFieldDecorator("imageUrl")}
                                    </FormItem>  
                                    <FormItem>                                                 
                                        {getFieldDecorator("studentName", {
                                            rules: [{ required: true, message: "学生姓名！" }]
                                        })(
                                            <Input
                                                size="large"
                                                prefix={
                                                    <Icon type="user" style={{ color: "rgba(0,0,0,.25)" }} />
                                                }
                                                placeholder="学生姓名"
                                            />  
                                        )}
                                    </FormItem>
                                    <FormItem>                                        
                                        {getFieldDecorator("logoCode", {
                                            
                                            rules: [{ required: true, message: "请输入绑定码！", algn:"left" }, { 
                                                max: 10, 
                                                message: '请输入正确的绑定码'}
                                            // {                              
                                            //     min: 6,
                                            //     message: '请输入正确的绑定码'
                                            // },
                                             
                                            ]
                                        })(
                                            <Input
                                                size="large"
                                                prefix={
                                                    <Icon type="link" style={{ color: "rgba(0,0,0,.25)" }} />
                                                }                           
                                                placeholder="绑定码" 
                                                maxLength={10}
                                                // minLength={6}   
                                            />
                                        )}
                                    </FormItem>
                                    <FormItem>                                      
                                        {getFieldDecorator("phoneNumber", {
                                            rules: [{type:'string', required: true, message: '请输入手机号码！' }, {                              
                                                min: 11,
                                                message: '请输入正确的手机号'
                                            }, { 
                                                max: 11, 
                                                message: '请输入正确的手机号'}, {
                                                pattern: /^1([0-9]*)?$/,
                                                message:'请输入正确的手机号'                  
                                            }
                                            ]
                                        })(
                                            <Input
                                                size="large"
                                                prefix={
                                                    <Icon type="phone" style={{ color: "rgba(0,0,0,.25)" }} />
                                                }
                                                placeholder="手机号"   
                                                maxLength={11}
                                                minLength={11}                
                                            />
                                        )}
                                    </FormItem>
                                    <FormItem>                    
                                        {getFieldDecorator("parents", {
                                            rules: [{ required: true, message: "请选择与学生关系！" }]
                                        })(
                                            <Radio.Group onChange={this.onChangeRadio} value={this.state.value}
                                                prefix={
                                                    <Icon type="team" style={{ color: "rgba(0,0,0,.25)", algn:"center" }} />
                                                }
                                                placeholder="与学生关系">
                                                <p style={{                                                   
                                                    fontSize: '18px',
                                                    justifyContent: 'center'
                                                }}><span style={{color:'red', fontSize: '25px'}}>*</span>与学生关系:
                                                    {<br/>, <br/>}
                                                    {avaliablemembersRadio}   
                                                </p>                                               
                                                                                        
                                            </Radio.Group>                                        
                                        )}
                                    </FormItem>  
                                    {/* {isUpload} */}
                                    <FormItem style={{display:'flex', justifyContent:'space-around'}}>                          
                                        {getFieldDecorator("message", {
                                            // rules: [{ required: {isTrue}, message: "请上传头像!"}]                                            
                                        })(                    
                                            <div className="clearfix">
                                                {isUpload}
                                            </div>  
                                        )}
                                    </FormItem> 
                                    <FormItem>
                                        <Button
                                            type="primary"
                                            htmlType="submit"
                                            className="login-form-button"
                                        >
                                       绑定
                                        </Button>
                                    </FormItem>
                                </Form>
                            </Card>
                        </Col>
                    </Row>            
                </Content>
            </Layout>
            
        );
    }
}

const wechatBindStudent =  Form.create()(bindUserInfoStudent);
const confirm = Modal.confirm;

class userInfoStudent extends Component {
    constructor(props) {
        super(props);
        this.state = {
            headimgurl: '',
            realname: '',
            imageUrl:'',
            openid: '',
            bindStudentInfoget:[],
            collapsed: false,
            nodata: false,
            studentLength:''
        }
    }

    componentDidMount() {
        let code = this.getUrlParam("code");
       
        if(this.state.openid === '') {
            // let openid = "oq0rl1NKJFZf_Bct0qfBiXa6-nKw";
            // let openid = "justTest01";
            // this.setState({
            //     openid: openid
            // });
            // this.getUserInfoStudent(openid);

            getAccessTokenForOpenId(code)
                .then((res) => {
                    let openid = res.data.openid;
                    let accessToken = res.data.access_token;
                    this.setState({
                        openid: openid
                    });
                    this.getUserInfoStudent(openid);
                    // alert(openid);
                })
                .catch((e) => {
                    if (e.response) {
                        //请求已发出，服务器返回状态码不是2xx。
                        console.info(e.response.data)
                        console.info(e.response.status)
                        console.info(e.response.headers)
                    } else if (e.request) {
                        // 请求已发出，但没有收到响应
                        // e.request 在浏览器里是一个XMLHttpRequest实例，
                        // 在node中是一个http.ClientRequest实例
                        console.info(e.request)
                    } else {
                        //发送请求时异常，捕捉到错误
                        console.info('error', e.message)
                    }
                    console.info(e.config)
                });
        } else {
            this.getUserInfoStudent(this.state.openid);
        }
        
    }

    getUserInfoStudent = (openid) => {
        getUserInfoStudentByWeChatIdForSendMsg(openid)
            .then((res) => {
            
                if (res.data.isContain == true) { //该用户已绑定
                    // console.log("res.data.bindStudentInfo[0].imageUrl:"+res.data.bindStudentInfo[0].imageUrl);
                    console.log("res.data.bindStudentInfo.length:"+res.data.bindStudentInfo.length);
                    this.setState({
                        bindStudentInfoget: res.data.bindStudentInfo,
                        imageUrl: res.data.bindStudentInfo[0].imageUrl,
                        studentLength: res.data.bindStudentInfo.length                 
                    });
                    // getUserWechatInfoStudent(accessToken, openid)
                } else {
                    this.setState({
                        nodata: true,
                        imageUrl:''
                    })
                    // this.props.history.push({ pathname: '/wechatBindStudent', state: { openid: openid, imageUrl:''} });   
                    // this.props.history.push({pathname: '/wechatBind', state: {openid: "oK_0N079n3oSxMU4igzloJceguco"}});
                }
            })
            .catch((e) => {
                if (e.response) {
                    //请求已发出，服务器返回状态码不是2xx。
                    console.info(e.response.data)
                    console.info(e.response.status)
                    console.info(e.response.headers)
                } else if (e.request) {
                    // 请求已发出，但没有收到响应
                    // e.request 在浏览器里是一个XMLHttpRequest实例，
                    // 在node中是一个http.ClientRequest实例
                    console.info(e.request)
                } else {
                    //发送请求时异常，捕捉到错误
                    console.info('error', e.message)
                }
                console.info(e.config)
            });
    }

    getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg);  //匹配目标参数
        if (r != null) return unescape(r[2]);
        return null; //返回参数值
    }

    onClickListener = (that, item) => {
        // console.log(item.studentName);
        confirm({
            title: '确定要解除绑定？',
            okText: '解除绑定',
            cancelText: '取消',
            centered: true,
            onOk() {  
                let studentName = item.studentName
                deleteWechatIdStudentForSendMsg(that.state.openid, studentName, that.state.studentLength, that.state.imageUrl)
                    .then((res) => {
                        if (res.data == "success") {
                            that.getUserInfoStudent(that.state.openid);
                            // location.reload();
                        } else {
                            message.error('解除绑定失败！');
                        }
                        // this.setState({
                        //     visible: false,
                        // });
                    })
                    .catch((e) => {
                        if (e.response) {
                            //请求已发出，服务器返回状态码不是2xx。
                            console.info(e.response.data)
                            console.info(e.response.status)
                            console.info(e.response.headers)
                        } else if (e.request) {
                            // 请求已发出，但没有收到响应
                            // e.request 在浏览器里是一个XMLHttpRequest实例，
                            // 在node中是一个http.ClientRequest实例
                            console.info(e.request)
                        } else {
                            //发送请求时异常，捕捉到错误
                            console.info('error', e.message)
                        }
                        console.info(e.config)
                    });
            },
            onCancel() {
            },
        });
    }

    onClickListenerBindContinue = (that) => {
        console.log("onClickListenerBindContinueurl"+this.state.imageUrl)
        that.props.history.push({ pathname: '/wechatBindStudent', state: { openid: that.state.openid, imageUrl:this.state.imageUrl } });
    }
    onCollapse = collapsed => {
        console.log(collapsed);
        this.setState({ collapsed });
    };

    render() {  
        
        // let screenWidth = document.querySelector('body').offsetWidth;
        return ( 
              
            <Layout style={{
                
                height: '100%',
                width:'100%',
                marginBottom:40,
                
            }}> 
                <Content style={{                    
                    position: 'relative',
                    width:'100%',
                    height: '100%',
                    backgroundColor: '#ECECEC', 
                    // marginLeft:'10%'
                    padding: '12px 2px 12px 18px',              
                }}>                 
                    {
                        this.state.nodata ? (<IconFont type="icon-zanwushuju" style={{
                            position: 'fixed',
                            fontSize: '180px',
                            left: '50%',
                            top: '50%',
                            transform: 'translate(-50%, -50%)'

                        }} />) : this.state.bindStudentInfoget.map((item)=>
                            <Row type="flex" justify="center" align="middle" gutter={[20, 20]} style={{width:'100%'}}>                      
                                <Col justify="center" style={{width:'100%', padding:'10px'}}>
                                    
                                    <Card style={{padding:'0px 2px', width:'100%'}}   size="default" title={<div style={{textAlign:"left"}}>家长绑定信息</div>} extra={<Button size="small" type="danger" onClick={() => { this.onClickListener(this, item) }}>解除绑定</Button>} >
                                        <Sider style={{width:0, height:'100%', paddingTop:'0px'}}></Sider>                              
                                        <div style={{padding:'15 px'}}>
                                            <p className='space-between' style={{
                                                marginBottom: '8px',
                                                paddingLeft: '26px',
                                                position: 'relative'
                                            }}>
                                                <div style={{color:'rgba(0, 0, 0, 0.85)'}}>
                                                    <IconFont type="icon-xingmingyonghumingnicheng" style={{
                                                        position: 'absolute',
                                                        fontSize: '14px',
                                                        left: '0',
                                                        top: '4px'
                                                        
                                                    }} />学生姓名
                                                </div>
                                                <div style={{color:'rgba(0, 0, 0, 0.85)'}}>
                                                    {item.studentName}
                                                </div>
                                            </p>
                                        
                                            <p className='space-between' style={{
                                                marginBottom: '8px',
                                                paddingLeft: '26px',
                                                position: 'relative'
                                            }}>
                                                <div style={{color:'rgba(0, 0, 0, 0.85)'}}>
                                                    <IconFont type="icon-gongsi" style={{
                                                        position: 'absolute',
                                                        fontSize: '14px',
                                                        left: '0',
                                                        top: '4px'
                                                    }} />与学生关系
                                                </div>
                                                <div style={{color:'rgba(0, 0, 0, 0.85)'}}>
                                                    {item.parents}
                                                </div>    
                                            </p>
                                            <p className='space-between' style={{
                                                marginBottom: '8px',
                                                paddingLeft: '26px',
                                                position: 'relative'
                                            }}>
                                                <div style={{color:'rgba(0, 0, 0, 0.85)'}}>
                                                    <IconFont type="icon-xuexiao" style={{
                                                        position: 'absolute',
                                                        fontSize: '14px',
                                                        left: '0',
                                                        top: '4px'
                                                    }} />学校
                                                </div>
                                                <div style={{color:'rgba(0, 0, 0, 0.85)'}}>
                                                    {item.school}
                                                </div>
                                            </p>       
                                        </div>
                                    </Card>
                                
                                </Col> 
                            </Row> 
                    
                        )       
                    } 
                </Content> 
                <Button
                    style={{
                        position: 'fixed',
                        bottom: '0px',
                        left: '0px',
                        
                    }}
                    type="primary"
                    className="login-form-button"
                    onClick={() => { this.onClickListenerBindContinue(this) }}>
                    绑去定    
                </Button> 
            
            </Layout>
           
            
        )
    }
}

class success extends Component {
    handleClick() {
        window.WeixinJSBridge.call('closeWindow'); //微信浏览器提供的方法 关闭页面
    }

    render() {
        return (
            <Layout style={{
                backgroundColor: "#ffffff",
                textAlign: "center",
                height: "100%"
            }}>
                <Content style={{
                    paddingTop: "56px"
                }}>
                    <IconFont
                        type="icon-locationiconsuccess"
                        style={{
                            marginBottom: "30px",
                            fontSize: "93px"
                        }} />
                    <h2 style={{
                        marginBottom: "5px",
                        fontWeight: "400",
                        fontSize: "20px"
                    }}>操作成功</h2>
                    <p style={{
                        fontSize: "14px",
                        color: "#808080"
                    }}>您的微信账号与学生信息已成功绑定，请直接关闭此页面</p>
                    <div style={{
                        margin: "1.17647059em 15px 0.3em"
                    }}>
                        <div onClick={this.handleClick}
                            style={{
                                color: "#ffffff",
                                backgroundColor: "#1AAD19",
                                position: "relative",
                                display: "block",
                                marginLeft: "auto",
                                marginRight: "auto",
                                paddingLeft: "14px",
                                paddingRight: "14px",
                                boxSizing: "border-box",
                                fontSize: "18px",
                                textAlign: "center",
                                textDecoration: "none",
                                lineHeight: "2.55555556",
                                borderRadius: "5px"
                            }}>
                            关闭此页面
                        </div>
                    </div>
                </Content>
            </Layout>
        );
    }
}



export {wechatBindStudent, userInfoStudent, success };



